package com.tommy.foreground.service;

import com.tommy.foreground.dao.ItemMapper;
import com.tommy.foreground.entity.Item;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Package Name: com.tommy.foreground.service
 * @Description: TODO
 * @Author tommy
 * @Date 2017.11.10 15:33
 * @Modify Who      When     What
 * ---------- ----------- -------------
 */
@Service
public class ItemService {
    @Autowired
    private ItemMapper itemMapper;

    public Item selectItemInfo(long id) {
        return itemMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKey(Item record) {
        return itemMapper.updateByPrimaryKey(record);
    }

    public int insertSelective(Item record) {
        return itemMapper.insertSelective(record);
    }
}
